﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Student
{
    private string firstName;
    private string lastName;
    private string fn;
    private string tel;
    private string eMail;
    private List<int> marks;
    private int groupNumber;
    private int grNum;

    public int GrNum
    {
        get { return grNum; }
        set { grNum = value; }
    }

    public string FirstName
    {
        get { return firstName; }
        set { firstName = value; }
    }
    
    public string LastName
    {
        get { return lastName; }
        set { lastName = value; }
    }

    public string Fn
    {
        get { return fn; }
        set { fn = value; }
    }

    public string Tel
    {
        get { return tel; }
        set { tel = value; }
    }

    public string EMail
    {
        get { return eMail; }
        set { eMail = value; }
    }


    public List<int> Marks
    {
        get { return marks; }
        set { marks = value; }
    }

    public int GroupNumber
    {
        get { return groupNumber; }
        set { groupNumber = value; }
    }

    public Student(string firstName, string lastName, string fn, string tel, string eMail, List<int> marks, int groupNumber,
        int grNum)
    {
        this.firstName = firstName;
        this.lastName = lastName;
        this.fn = fn;
        this.tel = tel;
        this.eMail = eMail;
        this.marks = marks;
        this.groupNumber = groupNumber;
        this.grNum = grNum;
    }

    public override string ToString()
    {
        return String.Format(@"Fist name:{0} Last name: {1} FN:{2} TEL:{3} e-mail:{4} group number:{5}",
            this.firstName, this.lastName, this.fn, this.tel, this.eMail, this.groupNumber);
    }
}
